﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="m"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查询结果---庆祝一中60年校庆</title>
    <script src="style/jquery132.js" type="text/javascript"></script>
    <link href="style/reset.css" rel="stylesheet" type="text/css">
    <link href="style/style.css" rel="stylesheet" type="text/css">
    <link href="style/ds.css" rel="stylesheet" type="text/css">
    <link href="style/info_news.css" rel="stylesheet" type="text/css"/>
</head>

<body>
<div id="container">
  <m:nav/>
 <div id="main">
 
        <div id="content">        
         <div class="subColumnBar">
				<div class="columnTitle">
					查询结果：
				</div>
				<div class="more"></div>
				<div style="clear: both"></div>
		</div>
		 <div class="searchList">
			<table	style="BORDER-RIGHT: #B70134 2px dotted; BORDER-TOP: #B70134 2px dotted; BORDER-LEFT: #B70134 2px dotted; BORDER-BOTTOM: #B70134 2px dotted; BORDER-COLLAPSE: collapse"
						borderColor=#B70134 height=35 cellPadding=1 width=700
							align=center border=2>
							<tbody>
								<tr>
									<th>
										<div align=center>
											新闻ID
										</div>
									</th>
									<th>
										<div align=center>
											新闻类型
										</div>
									</th>
									<th>
										<div align=center>
											新闻题目
										</div>
									</th>
									<th>
										<div align=center>
											发布时间
										</div>
									</th>
									<th>
										<div align=center>
											访问人数
										</div>
									</th>
								</tr>
							<s:iterator value="news" var="news">
								<tr>
									<td>
										<div align=center>
											<s:property value="#news.newsId" />
										</div>
									</td>
									<td>
										<div align=center>
											【<s:property value="#news.newsType" />】
										</div>
									</td>
									<td>
										<div align=center>
										<a title="<s:property value="#news.newsName" />" 
							href="newsAction!listById.action?newsId=<s:property value="#news.newsId" />"
								target="_blank"><s:if test="%{#news.newsName.length()>17}"><s:property value="#news.newsName.substring(0,17)+'...'"/></s:if><s:else><s:property value="#news.newsName"/></s:else>
							</a>
										</div>
									</td>
									<td>
										<div align=center>
											<s:date name="#news.newsDate" format="yyyy-MM-dd" />
										</div>
									</td>
									<td>
										<div align=center>
											<s:property value="#news.newsHot" />
										</div>
									</td>
								</tr>
							</s:iterator>	
							</tbody>
					</table>
	
            </div>
            <div class="back"><a href="#" onclick="window.close()"><img src="images/close.gif" border="0" height="18" width="75"></a></div>
        </div>
    </div>
  <div id="footer">
		<m:copyright/>
  </div>
</div>
<div style="position: absolute; display: none; z-index: 9999;" id="livemargins_control"><img src="images/monitor-background-horizontal.png" style="position: absolute; left: -77px; top: -5px;" height="5" width="77">	<img src="images/monitor-background-vertical.png" style="position: absolute; left: 0pt; top: -5px;">	<img id="monitor-play-button" src="images/monitor-play-button.png" onmouseover="this.style.opacity=1" onmouseout="this.style.opacity=0.5" style="position: absolute; left: 1px; top: 0pt; opacity: 0.5; cursor: pointer;"></div>
</body>
</html>